Activated Sludge
Currently, we assume that we have an ideal sensor (without noise).
The general characteristics of the bioreactor are:
- Number of compartments (bioreactor) = 5
- Non-aerated compartments = compartment number 1-2. Volume = 1500 m^3
- Aerated compartments = compartment number 3-5. Volume = 3000 m^3
Combine flow block
- RAS: flow returned from Settler
- primary: flow from primary clarifier
- storage: flow from storage tank
- thickener: flow from thickener
- Qintr: internal returned flow from bioreactor 5
Hyd_delay block
This block is placed to deal with algebraic loop. Timeconstance = 0.0001.
Carboncombiner block
Each bioreactor carbon input
Biorector 1 to 5
Inputs
- Output flow from Carboncombiner block
- Q
- T
- Soluble: Si, Ss, So, Sno, Snh, Snd, Salk
- Particulate: Xi, Xs, Xbh, Xba, Xp, Xnd, TSS
- KLa (oxygen transfer coefficient, per day)
- KLa1 (biorector 1) = 0
- KLa2 = 0
- KLa3 = output from SO4 control block (ideal sensor)
- KLa4 = output from SO4 control block (ideal sensor)
- KLa5 = 0.5* output from SO4 control block (ideal sensor)
Parameters
- Initial state of each variable to solve ODE (each bioreactor has different initial state value).
- PAR1:
- mu_H = 4
- K_S = 10
- K_OH = 0.2
- K_NO = 0.5
- b_H = 0.3
- mu_A = 0.5
- K_NH = 1
- K_OA = 0.4
- b_A =0.05
- ny_g = 0.8
- k_a = 0.05
- k_h = 3
- K_X = 0.1
- ny_h = 0.8
- Y_H = 0.67
- Y_A = 0.24
- f_P = 0.08
- i_XB = 0.08
- i_XP = 0.06
- Particulate2TSS = 0.75
ODE
Reactor mass balance.
Temperature compensation
Temperature dependency for oxygen saturation concentration (So) and oxygen transfer coefficient (KLa).
- Solve the ODE to get the current bioreactor temperature.
- Calculated the new parameter according to the current temperature in the reactor.
- Calculate So_sat_temp and KLa_temp.
Soluble
- So:
- if KLa < 0.0, So = abs(KLa)
- dSo/dt = Q/vol((So_in - So)) + reac8 + KLa_temp(So_sat_temp - So)
- Other: dSoluble{i}/dt = Q/vol*(Soluble_in{i} - Soluble{i}) + reac{i}
Particulate
- No ODE for TSS. TSS is depended on Xi, Xs, Xbh, Xba, and Xp.
- Other: dParticulate{i}/dt = Q/vol*(Particulate_in{i} - Particulate{i}) + reac{i}
Reaction rate
Outputs
- Q = same as input
- T = output from ODE
- Soluble = output from ODE
- Particulate = output from ODE except TSS
- TSS = 0.75*(Xi + Xs + Xbh + Xba + Xp)
S04 control block
The primary control objective for the default strategies is to maintain the dissolved oxygen concentration in the fifth compartment at a predetermined set point value (2 g(-COD)/m^3)
Inputs
- So from bioreactor 4
- So set point point = SO_ref = 2 g(-COD)/m^3
Outputs
- KLa (oxygen transfer coefficient, per day)